<template>
  <el-dialog title="查看详情" v-model="dialogVisible" width="500">
    <el-descriptions border :column="1" title="机器人详情">
      <el-descriptions-item label="id">{{ data.id }}</el-descriptions-item>
      <el-descriptions-item label="提示词">
        {{ data.prompt }}
      </el-descriptions-item>
      <el-descriptions-item label="机器人颜色">
        {{ data.robotColor }}
      </el-descriptions-item>
      <el-descriptions-item label="机器人名字">
        {{ data.robotName }}
      </el-descriptions-item>
      <el-descriptions-item label="机器人角色">
        {{ data.robotRole }}
      </el-descriptions-item>
      <el-descriptions-item label="创建时间">
        {{ data.createTime }}
      </el-descriptions-item>
      <el-descriptions-item label="修改时间">
        {{ data.updateTime }}
      </el-descriptions-item>
      <el-descriptions-item label="创建人id">
        {{ data.createId }}
      </el-descriptions-item>
      <el-descriptions-item label="修改人id">
        {{ data.updateId }}
      </el-descriptions-item>
      <el-descriptions-item label="策略名称">
        {{ data.strategyName }}
      </el-descriptions-item>
      <el-descriptions-item label="欢迎语类型">
        {{ data.greetType }}
      </el-descriptions-item>
      <el-descriptions-item label="对话ui主题">
        {{ data.robotUiTheme }}
      </el-descriptions-item>
    </el-descriptions>
  </el-dialog>
</template>

<script setup lang="ts">
import { ref } from 'vue'

const dialogVisible = ref(false)
const data = ref()

const open = (row: any) => {
  data.value = row
  dialogVisible.value = true
}

defineExpose({ open })
</script>

<style scoped></style>
